<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<input type="text" id="usr" />
		<input type="button" value="设置用户" id="setusr"/>
		<input type="button" value="获取用户" id="getusr"/>
		<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
	$("#setusr").click(function(){
		$("#usr").val("孙悟空");
	});
	$("#getusr").click(function(){
		alert($("#usr").val());
	});
	</script>
	</body>
</html>
